﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Entity.Car_Rental;

namespace Data.Car_Rental
{
    public interface INewsRepository : IBackgroundRepository<News>
    {
        /// <summary>
        /// 前台得到所有模块
        /// </summary>
        /// <returns></returns>
        IQueryable<News> GetModelForSite();
        /// <summary>
        /// 后台得到所有模块
        /// </summary>
        /// <returns></returns>
        IQueryable<News> GetModelForBackground();
        /// <summary>
        /// detail data table
        /// </summary>
        /// <returns></returns>
        IQueryable<News> GetModelDetail();

        Entity.PagedList<News> GetNews(Entity.VPredication vp, Entity.PagingParam pp);
    }
}
